#ifndef INCLUDED_CIMAGEENTITY
#define INCLUDED_CIMAGEENTITY

#include "VGCVirtualGameConsole.h"
#include "CVector.h"
#include "CEntity.h"
#include "CImage.h"

using namespace std;

class CImageEntity : public CEntity {
	private: CImage image;
			 double frameDuration;

	public: CImageEntity(CImage image, double x, double y);
			~CImageEntity();

			void setImage(CImage image);
			CImage getImage();

			void setTileCount(VGCVector tileCount);
			VGCVector getTileCount();

			double getFrameDuration();

			void draw(const double &time);
			void destroy();

			virtual int frameIndexX(const double &time);
			virtual int frameIndexY(const double &time);
};

#endif